<template>
  <div>
    <h1>App组件</h1>
    <div class="list">
      <Content type="图片">
        <img :src="imgUrl" alt="" />
      </Content>
      <Content type="食物">
        <ul>
          <li v-for="item in eatList" :key="item">{{ item }}</li>
        </ul>
      </Content>
      <Content type="人员">
        <ul>
          <li v-for="item in nameList" :key="item">{{ item }}</li>
        </ul>
      </Content>
    </div>
  </div>
</template>

<script>
import Content from "@/components/Content";
export default {
  name: "App",
  components: {
    Content,
  },
  data() {
    return {
      imgUrl: "http://www.atguigu.com/images/index_new/sh/06.png",
      eatList: ["小龙虾", "啤酒", "烧烤"],
      nameList: ["张三", "李四", "王五"],
    };
  },
};
</script>

<style scoped>
.list {
  display: flex;
  justify-content: space-around;
}
</style>
